import instance from '@/util/requestMethods'
import {
    GETALLBOOK,
    DELETEBOOK,
    ADDBOOK
} from '@/services/api'
const header={}
//此模块用于处理所有有关用户信息的
export async function getAllbook(params){
    return instance.get(GETALLBOOK,params,header)
}

export async function deletebook(params){
    return instance.post(DELETEBOOK,params,header)
}

export async function addbook(params){
    return instance.get(ADDBOOK,params,header)
}

export async function updatebook(params){
    return instance.post(UPDATEBOOK,params,header)
}